home *** CD-ROM | disk | FTP | other *** search
/ Amiga Plus 2002 #12 / Amiga Plus CD - 2002 - No. 12.iso / Tools / MorphOS / cvs-1.11.2 / source / Makefile.MorphOS < prev    next >
Encoding:
Makefile  |  2002-11-18  |  3.1 KB  |  106 lines

  1. #
  2. # $Id$
  3. #
  4. # :ts=4
  5. #
  6. # AmigaOS wrapper routines for GNU CVS, using the AmiTCP V3 API
  7. # and the SAS/C V6.58 compiler.
  8. #
  9. # Written and adapted by Olaf `Olsen' Barthel <olsen@sourcery.han.de>
  10. #                        Jens Langner <Jens.Langner@htw-dresden.de>
  11. #
  12. # This program is free software; you can redistribute it and/or modify
  13. # it under the terms of the GNU General Public License as published by
  14. # the Free Software Foundation; either version 2 of the License, or
  15. # (at your option) any later version.
  16. #
  17. # This program is distributed in the hope that it will be useful,
  18. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  19. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  20. # GNU General Public License for more details.
  21. #
  22. # You should have received a copy of the GNU General Public License
  23. # along with this program; if not, write to the Free Software
  24. # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  25. #
  26.  
  27. TARGET    = cvs.morphos
  28.  
  29. #
  30.  
  31. CC        = ppc-morphos-gcc
  32. STRIP     = ppc-morphos-strip
  33. OBJDUMP   = ppc-morphos-objdump
  34. RM        = rm -f
  35. CHMOD     = chmod
  36.  
  37. CPU      = -mcpu=604e
  38. CPUFLAGS = -mmultiple
  39. WARN     = -Wall
  40. OPTFLAGS = -O2 -fomit-frame-pointer -fstrength-reduce -fbaserel32
  41. DEBUG    = #-DDEBUG -g3 -O0
  42. CFLAGS   = -noixemul -I./ -I/gg/ppc-morphos/sys-include/ -I../ -I../lib -I../src -I../amiga -I../amiga/netinclude -DHAVE_CONFIG_H $(CPU) $(CPUFLAGS) $(WARN) $(OPTFLAGS) $(DEBUG) -c
  43. LDFLAGS  = -noixemul -fbaserel32 $(CPU)
  44. LDLIBS   =
  45.  
  46. # CPU and DEBUG can be defined outside, defaults to above
  47. # using e.g. "make DEBUG= CPU=-mcpu=603e" produces optimized non-debug PPC-603e version
  48. #
  49. # OPTFLAGS are disabled by DEBUG normally!
  50. #
  51. # ignored warnings are:
  52. # none - because we want to compile with -Wall all the time
  53. #
  54.  
  55. OBJS     =  src/libsrc.a.elf lib/libcvs.a.elf amiga/libamcvs.a.elf amiga/ssh/libssh.a.elf diff/libdiff.a.elf zlib/libzlib.a.elf
  56.  
  57. #
  58.  
  59. all: libsrc.a libcvs.a libamcvs.a libssh.a libdiff.a libzlib.a $(TARGET)
  60.  
  61. #
  62.  
  63. libsrc.a:
  64.     @make -C src -f Makefile.MorphOS CPU="$(CPU)" DEBUG="$(DEBUG)" OPTFLAGS="$(OPTFLAGS)"
  65.  
  66. libcvs.a:
  67.     @make -C lib -f Makefile.MorphOS CPU="$(CPU)" DEBUG="$(DEBUG)" OPTFLAGS="$(OPTFLAGS)"
  68.  
  69. libamcvs.a:
  70.     @make -C amiga -f Makefile.MorphOS CPU="$(CPU)" DEBUG="$(DEBUG)" OPTFLAGS="$(OPTFLAGS)"
  71.  
  72. libssh.a:
  73.     @make -C amiga/ssh -f Makefile.MorphOS CPU="$(CPU)" DEBUG="$(DEBUG)" OPTFLAGS="$(OPTFLAGS)"
  74.  
  75. libdiff.a:
  76.     @make -C diff -f Makefile.MorphOS CPU="$(CPU)" DEBUG="$(DEBUG)" OPTFLAGS="$(OPTFLAGS)"
  77.  
  78. libzlib.a:
  79.     @make -C zlib -f Makefile.MorphOS CPU="$(CPU)" DEBUG="$(DEBUG)" OPTFLAGS="$(OPTFLAGS)"
  80.  
  81. #
  82.  
  83. $(TARGET): $(OBJS)
  84.     $(CC) $(LDFLAGS) -o $@.debug $(OBJS) $(LDLIBS)
  85.     $(STRIP) -o $@ $@.debug
  86.     $(CHMOD) a+x $@
  87.  
  88. dump:
  89.     -$(OBJDUMP) --section-headers --all-headers --reloc --disassemble-all $(TARGET).debug >$(TARGET).dump
  90.  
  91. clean:
  92.     -$(RM) $(TARGET) $(OBJS)
  93.  
  94. cleanall: clean
  95.     make -C src -f Makefile.MorphOS clean
  96.     make -C lib -f Makefile.MorphOS clean
  97.     make -C amiga -f Makefile.MorphOS clean
  98.     make -C amiga/ssh -f Makefile.MorphOS clean
  99.     make -C diff -f Makefile.MorphOS clean
  100.     make -C zlib -f Makefile.MorphOS clean
  101.  
  102. #######################################
  103.  
  104.  
  105. #######################################
  106.